﻿<%@ Page Title="View User" Language="C#" MasterPageFile="~/admin/AdminMasterPage.master"
    AutoEventWireup="true" CodeFile="viewUSer.aspx.cs" Inherits="admin_provider_viewUSer" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="contents">
        <table width="100%" cellpadding="3" cellspacing="0" border="0">
            <tr>
                <td colspan="2">
                    <h1>
                        View User </h1>
                </td>
            </tr>
            <tr>
                <td>
                    User Type :
                    <asp:DropDownList ID="ddlUserType" runat="server" class="text">
                        <asp:ListItem Text="Agent" Value="200"></asp:ListItem>
                    </asp:DropDownList>
                    <asp:Button ID="btnSearch" runat="server" Text="Search" />
                </td>
                <td width="30%" align="right" style="text-align: right;">
                    <asp:Button ID="btnNewUser" runat="server" OnClick="btnNewUser_Click" Text="New User" />
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <asp:GridView ID="grvUser" runat="server" AllowPaging="True" AllowSorting="True"
                        AutoGenerateColumns="False" CellSpacing="3" CellPadding="3" Width="100%" PagerStyle-CssClass="pgr"
                        CssClass="admin_gridstyle" DataKeyNames="CEID" DataSourceID="sqlDSgUser"
                        GridLines="None">
                        <Columns>
                            <asp:BoundField DataField="CEID" HeaderText="UserId" ReadOnly="True" SortExpression="CEID" />
                            <asp:BoundField DataField="Email" ItemStyle-Width="350px" HeaderText="Email" SortExpression="Email" />
                            <asp:BoundField DataField="AuthCode" ItemStyle-Width="150px" HeaderText="AuthCode" SortExpression="AuthCode" />
                            <asp:BoundField DataField="UsrTypeId" HeaderText="User TypeId" SortExpression="UsrTypeId" />
                            <asp:BoundField DataField="FirstName" HeaderText="First Name" SortExpression="FirstName" />
                            <asp:BoundField DataField="SurName" HeaderText="Sur Name" SortExpression="SurName" />
                        </Columns>
                        <FooterStyle />
                        <PagerStyle />
                        <SelectedRowStyle />
                        <HeaderStyle CssClass="admin_gridheader" />
                        <EditRowStyle />
                        <AlternatingRowStyle CssClass="admin_gridodd" />
                        <RowStyle CssClass="admin_grideven" />
                    </asp:GridView>
                    <asp:SqlDataSource ID="sqlDSgUser" runat="server" ConnectionString="<%$ ConnectionStrings:TH.CX_DBConnectionString %>"
                        SelectCommand="sprocGGAdminUserSelectItemList" SelectCommandType="StoredProcedure">
                        <SelectParameters>
                            <asp:ControlParameter ControlID="ddlUserType" Name="UsrType" PropertyName="SelectedValue" Type="Int16"   />
                        </SelectParameters>
                    </asp:SqlDataSource>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>
